JavaScript by Thomas Powell & Fritz Schneider

JavaScript by Thomas Powell & Fritz Schneider

Author:Thomas Powell & Fritz Schneider
Language: eng
Format: epub
Publisher: McGraw-Hill Education
Published: 2012-08-15T16:00:00+00:00


* * *

ONLINE http://javascriptref.com/3ed/ch11/onreadystatechange.html

In addition to these two usages, Internet Explorer exposes the onreadystatechange event to every element. Elements that load external data such as <img>, <script>, and <link> fire the event as the data is loaded. The rest of the elements only use the event in conjunction with Internet Explorer behaviors.

DOMContentLoaded

A potentially useful event is DOMContentLoaded, which is fired when content is loaded, but other dependencies may still be loading. This event is useful because, with external dependencies, the load event for a browser window may take quite some time. In general, the event only waits for HTML and scripts, but there can be peculiarities and browser details. Fortunately, many libraries take care of these issues for us.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.